package com.gs.xbinfomytest.entity;

import com.gitee.hengboy.mybatis.enhance.common.annotation.Column;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Id;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Table;
import com.gitee.hengboy.mybatis.enhance.common.enums.KeyGeneratorTypeEnum;
import lombok.Data;
import java.io.Serializable;

/**
 * 用户和角色关联表
 * @author ApiBoot Mybatis Enhance Codegen
 */
@Data
@Table(name = "sys_user_role")
public class SysUserRole implements java.io.Serializable {

    /**
     * 用户ID
     */
    @Id(generatorType = KeyGeneratorTypeEnum.UUID)
    @Column(name = "user_id")
    private Long userId;
    /**
     * 角色ID
     */
    @Id(generatorType = KeyGeneratorTypeEnum.UUID)
    @Column(name = "role_id")
    private Long roleId;
}

